package org.example.y24.m10;

import java.util.Date;
import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Double[][] score = new Double[5][5];
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < 5; i++) {
            for (int j = 0; j < 5; j++) {
                score[i][j] = scanner.nextDouble();
            }
        }for (int i = 0; i < 5; i++) {
            Double sum = 0.0;
            for (int j = 0; j < 5; j++) {
                System.out.printf("%.1f ",score[i][j]);
                sum += score[i][j];
            }
            System.out.printf("%.1f ",sum);
            System.out.println();
        }

    }
}
